package com.sboot.shiro.biz.sys.user.service.impl;

import java.util.List;
import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sboot.shiro.biz.sys.user.dao.SysPermissionMapper;
import com.sboot.shiro.biz.sys.user.po.SysPermission;
import com.sboot.shiro.biz.sys.user.service.SysPermissionService;

@Service
public class SysPermissionServiceImpl implements SysPermissionService {

	@Autowired
	private SysPermissionMapper sysPermissionMapper;
	
	@Override
	public Set<SysPermission> getPermissionsByUserId(String userId) {
		return sysPermissionMapper.selectPermissionsByUserId(userId);
	}

	@Override
	public List<SysPermission> getPermissionsByConditions(SysPermission sysPermission) {
		return sysPermissionMapper.selectPermissionsByConditions(sysPermission);
	}

}
